{block name=report-filters}

<div class="col-sm-12" style="margin-top:15px;"><small style="padding-right:5px; padding-left:5px; color:#000;">若要选中多个请按住 'CTRL' (windows 用户) 或者 'COMMAND' (mac 用户)</small></div>
<div class="form-group col-sm-4">
  <label for="terms" >选择学期:</label><br>
  <select id="terms" class="term-filter" name="terms[]" multiple >
  {foreach $termlist as $t}<option id="term{$t.term_object_id}" value="{$t.term_object_id}" data-termregion="{$t.term_region}">{$t.term_region} - {$t.term_name}</option>{/foreach}
  </select>
</div>
<div class="form-group col-sm-2 hide">
  <label for="regions" >选择地区:</label><br>
  <select id="regions" class="region-filter" name="filter[regions][]" multiple>
  {foreach $regionlist as $r}<option id="region{$r.region_id}" value="{$r.region_id}" >{$r.region_name}</option>{/foreach}
  </select>
</div>
<div class="form-group col-sm-4">
  <label for="locations" >选择场馆:</label><br>
  <select id="locations" class="location-filter" name="locations[]" multiple>
  {foreach $locationlist as $l}<option id="location{$l.location_object_id}" value="{$l.location_object_id}" data-region="{$l.location_state}" >{$l.location_suburb} - {$l.location_name}</option>{/foreach}
  </select>
	<select id="hidden-locations" name="hidden-locations" class="hidden">
  </select>
</div>
<div class="form-group col-sm-2">
  <label for="weekday" >选择星期:</label><br>
  <select id="weekday" name="filter[weekdays][]" multiple>
  {foreach $weekdaylist as $w}<option id="weekday{$w.id}" value="{$w.value}" >{$w.display}</option>{/foreach}
  </select>
</div>
<div class="form-group col-sm-2 last">
  <label for="agegroup" >选择年龄段:</label><br>
  <select id="agegroup" name="filter[agegroups][]" multiple>
  {foreach $agegrouplist as $ag}<option id="agegroup{$ag.agegroup_id}" value="{$ag.agegroup_id}" >{$ag.agegroup_name}</option>{/foreach}
  </select>
</div>
{/block}